<div class="layui-container">
    <div class="layui-row layui-col-space15">

        <!-- 左边 -->
        <div class="layui-col-md12">
            <div class="fly-panel" style="margin-bottom: 0;">

                <!-- 帖子列表 -->
                <ul class="fly-list">
                    {foreach $postlist as $post}
                    <li>
                        <!-- 帖子头像 -->
                        <a href="{:url('home/user/index',['creaid'=>$post['id']])}" class="fly-avatar">
                            {if condition="$post.user.avatar && is_file('.'.$post.user.avatar)"}
                            <img src="{$post.user.avatar}" />
                            {else /}
                            <img src="/assets/home/images/avatar.jpg" />
                            {/if}
                        </a>

                        <!-- 标题分类 -->
                        <h2>
                            {if condition="post.cate.id"}
                            <a class="layui-badge">{$post.cate.name}</a>

                            <a href="{:url('home/index/info',['postid'=>$post['id']])}">{$post.title}</a>
                        </h2>

                        <div class="fly-list-info">
                            <!-- 昵称 -->
                            <a href="javascript:void(0)">
                                <cite>{$post.user.nickname}</cite>
                                <!-- 认证 -->
                                <i class="iconfont icon-renzheng"></i>
                                <!-- VIP -->
                                {if condition="$post.user.vip gt 0"}
                                <i class="layui-badge fly-badge-vip">VIP{$post.user.vip}</i>
                                {/if}

                            </a>

                            <!-- 发帖时间 -->
                            <span>{$post.createtime}</span>

                            <!-- 悬赏积分 -->
                            <span class="fly-list-kiss layui-hide-xs">
                                <i class="iconfont icon-kiss"></i>
                                {$post.point}
                            </span>

                            <!-- 完结状态 -->
                            {if condition="$post.accept"}
                            <span class="layui-badge fly-badge-accept layui-hide-xs">
                                已结
                            </span>
                            {/if}

                            <!-- 评论数 -->
                            <span class="fly-list-nums">
                                <i class="iconfont icon-pinglun1" title="回答"></i>
                                {$post.comment_total}
                            </span>

                        </div>

                        <!-- 热门状态 -->
                        <div class="fly-list-badge">
                            {if condition="$post.state eq 1"}
                            <span class="layui-badge layui-bg-black">置顶</span>
                            {elseif condition="$post.state eq 2"}
                            <span class="layui-badge layui-bg-red">精华</span>
                            {elseif condition="$post.state eq 3"}
                            <span class="layui-badge layui-bg-orange">热门</span>
                            {/if}
                        </div>
                    </li>

                    {/foreach}
                </ul>
            </div>
        </div>

        <!-- 分页 -->
        
    </div>
</div>